#使用MoonShot   sk-kiwyK1Ylil1GkOEuHnjlAT2b5Sf1nXNxcEw51tUG6PW3aHlO
from langchain_openai import ChatOpenAI

from dotenv import load_dotenv
load_dotenv()

text = "大模型是什么？"
llm = ChatOpenAI(
   model="kimi-k2-0905-preview",
    api_key="sk-kiwyK1Ylil1GkOEuHnjlAT2b5Sf1nXNxcEw51tUG6PW3aHlO",
    base_url="https://api.moonshot.cn/v1",
)


res = llm.invoke(text)

print(res.content)